package com.htc.android.footprints.utils;

import com.htc.android.footprints.utils.camera.FootprintImageManager;
import com.htc.android.footprints.vo.Footprint;

public class clearCachedRunnable
  implements Runnable
{
  public static final String TAG = "clearCachedRunnable";
  private Footprint[] footprints = null;
  private FootprintImageManager mImageManager = FootprintImageManager.getInstance();

  public clearCachedRunnable(Footprint[] paramArrayOfFootprint)
  {
    if ((paramArrayOfFootprint != null) && (paramArrayOfFootprint.length > 0))
      this.footprints = paramArrayOfFootprint;
  }

  public void run()
  {
    if ((this.footprints == null) || (this.footprints.length == 0))
      return;
    Footprint[] arrayOfFootprint = this.footprints;
    int i = arrayOfFootprint.length;
    int j = 0;
    while (j < i)
    {
      Footprint localFootprint = arrayOfFootprint[j];
      try
      {
        if ((localFootprint.mPicPath != null) && (localFootprint.mPicPath.length() > 0))
          this.mImageManager.clearCachebyKeyword(localFootprint.mPicPath);
        Thread.sleep(10L);
        j++;
      }
      catch (InterruptedException localInterruptedException)
      {
        while (true)
          localInterruptedException.printStackTrace();
      }
    }
  }
}

/* Location:           E:\workspace\dex2java\dex-translator-0.0.9.3\HtcFootprints_dex2jar.jar
 * Qualified Name:     com.htc.android.footprints.utils.clearCachedRunnable
 * JD-Core Version:    0.6.0
 */